import request from '@/utils/request'

// 获取信息
export function queryListDisGet(data) {
  return request({
    url: '/getOtherDisposal',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 保存生命支持
export function saveOtherTreatments(data) {
  return request({
    url: '/save/treatmentsWeb',
    // url: 'http://192.168.2.154:12121/save/treatments',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 删除生命支持
export function deleteOtherTreatments(data) {
  return request({
    url: '/deleteXzylObject ',
    // url: 'http://192.168.2.154:12121/save/treatments',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 保存药品
export function saveOtherMedicineg(data) {
  return request({
    url: '/saveMedicine',
    method: 'post',
    // headers: {
    //   'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    // },
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 保存药品
export function saveMedicine2(data) {
  return request({
    url: '/saveMedicine2',
    method: 'post',
    // headers: {
    //   'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    // },
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

/* 药品信息 */
export function selectList(data) {
  return request({
    url: '/selectMedicineInfo',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}